package com.kkb.pojo;

import java.util.Date;
import javax.persistence.*;

public class Products {
    @Id
    private Integer pid;

    private String pname;

    private Double price;

    private Date pdate;

    private String cid;

    private String pic;

    public Products(Integer pid, String pname, Double price, Date pdate, String cid, String pic) {
        this.pid = pid;
        this.pname = pname;
        this.price = price;
        this.pdate = pdate;
        this.cid = cid;
        this.pic = pic;
    }

    public Products() {
        super();
    }

    /**
     * @return pid
     */
    public Integer getPid() {
        return pid;
    }

    /**
     * @param pid
     */
    public void setPid(Integer pid) {
        this.pid = pid;
    }

    /**
     * @return pname
     */
    public String getPname() {
        return pname;
    }

    /**
     * @param pname
     */
    public void setPname(String pname) {
        this.pname = pname;
    }

    /**
     * @return price
     */
    public Double getPrice() {
        return price;
    }

    /**
     * @param price
     */
    public void setPrice(Double price) {
        this.price = price;
    }

    /**
     * @return pdate
     */
    public Date getPdate() {
        return pdate;
    }

    /**
     * @param pdate
     */
    public void setPdate(Date pdate) {
        this.pdate = pdate;
    }

    /**
     * @return cid
     */
    public String getCid() {
        return cid;
    }

    /**
     * @param cid
     */
    public void setCid(String cid) {
        this.cid = cid;
    }

    /**
     * @return pic
     */
    public String getPic() {
        return pic;
    }

    /**
     * @param pic
     */
    public void setPic(String pic) {
        this.pic = pic;
    }
}